<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('申请会员')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.user.nickname|htmlentities}</label>
            <input class="form-control" name="row[user_id]" type="hidden"
                   value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{if $row.type == 1}小学{/if}{if $row.type == 2}初中{/if}{if $row.type == 3}高中{/if}{if $row.type == 4}资深{/if}</label>
            <input class="form-control" name="row[type]" type="hidden"
                   value="{$row.type|htmlentities}">
        </div>
    </div>
    <div class="form-group hide">
        <label class="control-label col-xs-12 col-sm-2">父级管家:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[pid]" type="text" value="{$row.pid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="row list-inline faupload-preview">
                <li class="col-xs-3">
                    <a href="{$row.avatar|htmlentities}"
                       data-url="{$row.avatar|htmlentities}"
                       target="_blank" class="thumbnail">
                        <img src="{$row.avatar|htmlentities}"
                             onerror="this.src='/sXOBcWeVGx.php/ajax/icon?suffix=png';this.onerror=null;"
                             class="img-responsive">
                    </a>
                </li>
            </ul>
            <input class="form-control" name="row[avatar]" type="hidden"
                   value="{$row.avatar|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Realname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.realname|htmlentities}</label>
            <input class="form-control" name="row[realname]" type="hidden"
                   value="{$row.realname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('性别')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.gender ? '女' : '男'}</label>
            <input class="form-control" name="row[gender]" type="hidden"
                   value="{$row.gender|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.idcard_number|htmlentities}</label>
            <input class="form-control" name="row[idcard_number]" type="hidden"
                   value="{$row.idcard_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_a')}:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="row list-inline faupload-preview">
                <li class="col-xs-3">
                    <a href="{$row.idcard_a|htmlentities}"
                       data-url="{$row.idcard_a|htmlentities}"
                       target="_blank" class="thumbnail">
                        <img src="{$row.idcard_a|htmlentities}"
                             onerror="this.src='/sXOBcWeVGx.php/ajax/icon?suffix=png';this.onerror=null;"
                             class="img-responsive">
                    </a>
                </li>
            </ul>
            <input class="form-control" name="row[idcard_a]" type="hidden"
                   value="{$row.idcard_a|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idcard_b')}:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="row list-inline faupload-preview">
                <li class="col-xs-3">
                    <a href="{$row.idcard_b|htmlentities}"
                       data-url="{$row.idcard_b|htmlentities}"
                       target="_blank" class="thumbnail">
                        <img src="{$row.idcard_b|htmlentities}"
                             onerror="this.src='/sXOBcWeVGx.php/ajax/icon?suffix=png';this.onerror=null;"
                             class="img-responsive">
                    </a>
                </li>
            </ul>
            <input class="form-control" name="row[idcard_b]" type="hidden"
                   value="{$row.idcard_b|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.age|htmlentities}</label>
            <input class="form-control" name="row[age]" type="hidden"
                   value="{$row.age|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Forte')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.forte|htmlentities}</label>
            <input class="form-control" name="row[forte]" type="hidden"
                   value="{$row.forte|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Brief')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.brief|htmlentities}</label>
            <input class="form-control" name="row[brief]" type="hidden"
                   value="{$row.brief|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Honor')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php} $honor = explode(',', $row['honor']);{/php}
            <ul class="row list-inline faupload-preview">
                {foreach $honor as $item}
                <li class="col-xs-3">
                    <a href="{$item|htmlentities}"
                       data-url="{$item|htmlentities}"
                       target="_blank" class="thumbnail">
                        <img src="{$item|htmlentities}"
                             onerror="this.src='/sXOBcWeVGx.php/ajax/icon?suffix=png';this.onerror=null;"
                             class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>
            <input class="form-control" name="row[honor]" type="hidden"
                   value="{$row.honor|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Certificate')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php} $certificate = explode(',', $row['certificate']);{/php}
            <ul class="row list-inline faupload-preview">
                {foreach $certificate as $item}
                <li class="col-xs-3">
                    <a href="{$item|htmlentities}"
                       data-url="{$item|htmlentities}"
                       target="_blank" class="thumbnail">
                        <img src="{$item|htmlentities}"
                             onerror="this.src='/sXOBcWeVGx.php/ajax/icon?suffix=png';this.onerror=null;"
                             class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>
            <input class="form-control" name="row[certificate]" type="hidden"
                   value="{$row.certificate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Not_crime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="row list-inline faupload-preview">
                <li class="col-xs-3">
                    <a href="{$row.not_crime|htmlentities}"
                       data-url="{$row.not_crime|htmlentities}"
                       target="_blank" class="thumbnail">
                        <img src="{$row.not_crime|htmlentities}"
                             onerror="this.src='/sXOBcWeVGx.php/ajax/icon?suffix=png';this.onerror=null;"
                             class="img-responsive">
                    </a>
                </li>
            </ul>
            <input class="form-control" name="row[not_crime]" type="hidden"
                   value="{$row.not_crime|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-reason" class="form-control " rows="5" name="row[reason]">{$row.reason|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[status]', ['1'=>'待审核', '2'=>'已通过', '3'=>'已拒绝'], '2', ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
        </div>
    </div>
</form>
